package com.github.panchitoboy.shiro.wechat.repository;

import java.io.Serializable;

/**
 * 授权用户信息
 */
public class UserInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	private String id; //用户Id
	private String userTypeCode; //用户类型
	private String phoneNumber; //手机号码
	private String openId; // 微信openId
	private String name; // 姓名
	private String officeId;	// 用户所在部门ID
	private String loginFlag;	// 是否允许登陆
	private String username;
	private String password;
	
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public UserInfo() {
		super();
	}
	
	public UserInfo(String userTypeCode, String phoneNumber, String openId, String name) {
		this.userTypeCode = userTypeCode;
		this.phoneNumber = phoneNumber;
		this.openId = openId;
		this.name = name;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserTypeCode() {
		return userTypeCode;
	}

	public void setUserTypeCode(String userTypeCode) {
		this.userTypeCode = userTypeCode;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}
	
	public String getLoginFlag() {
		return loginFlag;
	}

	public void setLoginFlag(String loginFlag) {
		this.loginFlag = loginFlag;
	}

	@Override
	public String toString() {
		return phoneNumber;
	}

}
